﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BindTemplet.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Create.BindTemplet" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>绑定文件</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
body, td { font-size:12px; z-index:100;}
a { color:#000;}
.main_table { width:100%; padding:2px; border:solid 1px #f4fbff;}
.td_title { height:25px; line-height:25px; background:#EEF7FD; color:#135294; font-weight:bold;}
.td_on { background:#f4fbff; height:25px; line-height:25px; }
.td_off { background:#deeff9; height:25px; line-height:25px; }
#form1 table tr td table tr td #rptMenuList headertemplate .td_title td {font-weight: normal;}
</style>
<script type="text/javascript">
function $(arg)
{
    return document.getElementById(arg);
}
function CheckSubmit(str)
{
    return confirm("确定"+str+"吗？");
}
</script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label>核心 > 绑定文件</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <a href='javascript:window.history.back();'>返回</a>   
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px; "></span>
</div>

<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">
    
    
  <form id="form1" runat="server">
     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">
          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#f4fbff">
          <tr>
           <td>
            <table cellpadding=0 cellspacing=1 border=0 align="center" width="100%">
            <tr>
                <td valign="top">
                    <div style="color:#ffaa25;"> (静态页面模板)</div>
                    <asp:Repeater ID="rptStaticTemplets" runat="server" OnItemDataBound="rptStaticTemplets_ItemDataBound">
                        <HeaderTemplate>
                         <table class="main_table" cellpadding="0" cellspacing="1" border="0" width="100%">
                           <tr align="center" class="td_title">
                                <td align="left" width="40%"><img src="../images/plugin.png" alt="" name="" width="16" height="16">&nbsp;栏目名称</td>
                                <td align="left" width="15%">聚集页模板</td>
                                <td align="left" width="15%">列表页模板</td>
                                <td align="left" width="12%">内容页模板</td>
                                <td align="center" width="8%">站点地图</td>
                                <td align="center" width="10%">操作</td>
                           </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                         <tr class="td_on" onmouseover="this.className='td_off'" onmouseout="this.className='td_on'">
                            <td>
                                <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                                <asp:Label ID="LabClassNm" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"clsname") %>'></asp:Label>
                            </td>
                            <td>
                                <div style=" overflow:hidden; text-overflow: ellipsis; width: 150px;" title="<%#DataBinder.Eval(Container.DataItem, "indexfile")%>"><%#DataBinder.Eval(Container.DataItem, "indexfile")%></div>
                            </td>
                            <td>
                               <div style=" overflow:hidden; text-overflow: ellipsis; width: 150px;" title="<%#DataBinder.Eval(Container.DataItem, "listfile")%>"><%#DataBinder.Eval(Container.DataItem, "listfile")%></div>
                            </td>
                            <td>
                               <div style=" overflow:hidden; text-overflow: ellipsis; width: 120px;" title="<%#DataBinder.Eval(Container.DataItem, "showfile")%>"><%#DataBinder.Eval(Container.DataItem, "showfile")%></div>
                            </td>
                            <td align="center">
                                <asp:Literal ID="litCreateSiteMap" runat="server"></asp:Literal>
                            </td>
                            <td align="center">                          
                                 <a href='EditStaticTemplet.aspx?t=edit&no=<%#DataBinder.Eval(Container.DataItem,"clsno") %>'>修改</a>
                                 &nbsp;
                                 <a href='EditStaticTemplet.aspx?t=delete&no=<%#DataBinder.Eval(Container.DataItem,"clsno") %>' onclick="return CheckSubmit('删除');">删除</a>
                            </td>
                         </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                        </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <br />
                    <input type="button" class="bt" value="批量替换模板" onclick="document.location.href='EditReplaceTemplet.aspx'" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                   <div style="color:#ffaa25;"> (动态页面)</div>
                   <table class="main_table" cellpadding="0" cellspacing="1" border="0" width="100%">
                     <tr align="center" class="td_title">
                        <td align="left" width="40%"><img src="../images/plugin.png" alt="" name="" width="16" height="16">&nbsp;页面名称</td>
                        <td align="left" width="42%">页面路径</td>
                        <td align="center" width="8%">站点地图</td>
                        <td align="center" width="10%">操作</td>
                     </tr>
                     <asp:Literal ID="litDynamicTemplets" runat="server"></asp:Literal>
                  </table>
                  <br />
                  <input type="button" class="bt" value="添加动态页面" onclick="document.location.href='EditDynamicTemplet.aspx?t=add'" />
                </td>
            </tr>
          </table>
          
        </td>
       </tr>
      </table>
     </td>
    </table>
  </form>
  
  
    </td>
  </tr>
 </table>
</div>
</body>
</html>
